always @ (posedge pclk) 
begin
	if (nrst = 0) begin
		pixelcount <= 0;
		current_address <= 0;
	else
		current_address <= current_address + 1;
		address <= current_address;
		pixel_data <= data;
		
	end
end	